<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"  crossorigin="anonymous">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>左右结构页面</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        .container {
            display: flex;
            height: 100vh;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }
        .sidebar {
            width: 200px;
            background-color: #e4cbcf;
            color: #5a4d4d;
            padding: 20px;
            transition: width 0.3s ease;
        }
        .sidebar:hover {
            width: 220px;
        }
        .sidebar a {
            text-decoration: none;
            color: #1d2124;
            display: block;
            padding: 10px 0;
            transition: color 0.3s ease;
        }
        .sidebar a:hover {
            color: #0b2e13;
            transform: translateX(5px);
        }
        .sidebar h2 {
            margin: 0 0 20px;
            font-size: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            padding-bottom: 10px;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
        }
        .sidebar ul li {
            margin-bottom: 10px;
        }
        .content {
            flex: 1;
            padding: 20px;
            background-color: #c3d7e0;
            overflow-y: auto;
        }
        table.table.table-striped {
            border-collapse: collapse;
            width: 100%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        table.table.table-striped th,
        table.table.table-striped td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        table.table.table-striped th {
            background-color: #f2f2f2;
        }
        table.table.table-striped tr:hover {
            background-color: #f5f5f5;
        }
        button{
            border: 1px solid gray;
            border-radius: 5%;
            width: 120px;
            height: 50px;
            font-family: '楷体';
            font-size: large;
        }
        nav[aria-label="Page navigation example"] ul.pagination {
            display: flex;
            flex-wrap: nowrap;
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        nav[aria-label="Page navigation example"] ul.pagination li.page-item {
            margin-right: 10px;
            white-space: nowrap;
            border: 5px solid #ccc; /* 添加边框样式 */
            border-radius: 5px;
            padding: 10px;
        }

        nav[aria-label="Page navigation example"] ul.pagination li.page-item:last-child {
            margin-right: 0;
        }
        a {
            text-decoration: none;
            color: inherit;
            transition: none;
        }

        a:hover {
            text-decoration: none;
            color: inherit;
        }

    </style>
</head>
<body>
<div class="container">
    <div class="content">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>序号</th>
                <th>用户名</th>
                <th>价格</th>
                <th>详细</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="syo:${syo}">
                <th th:text="${syo.id}"></th>
                <th th:text="${syo.userId}"></th>
                <th th:text="${syo.total}"></th>
                <th th:text="${syo.description}"></th>
                <td>
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>明细序号</th>
                            <th>订单号</th>
                            <th>货物号</th>
                            <th>质量</th>
                            <th>总数</th>
                            <th>详细</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="detail:${syo.orderDetails}">
                            <th th:text="${detail.id}"></th>
                            <th th:text="${detail.orderId}"></th>
                            <th th:text="${detail.goodsId}"></th>
                            <th th:text="${detail.quatity}"></th>
                            <th th:text="${detail.total}"></th>
                            <th th:text="${detail.description}"></th>
                        </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script src="/bootstrap/js/jquery.min.js"  crossorigin="anonymous"></script>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>

</body>
</html>